<template>
    <el-card>
        <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="销售额" name="sales"><sales/></el-tab-pane>
            <el-tab-pane label="访问量" name="views">访问量</el-tab-pane>
        </el-tabs>
    </el-card>
</template>

<script>
import sales from './Sales.vue'
export default {
    data() {
        return {
            activeName: 'sales',
        }
    },
    components:{
        sales
    },
    methods: {
        handleClick(tab, event) {
            console.log(tab, event)
        },
    },
}
</script>

<style>
</style>